package com.yonyou.ncmm_pac_pda;

import com.yonyou.uap.um.application.ApplicationContext;
import com.yonyou.uap.um.base.*;
import com.yonyou.uap.um.common.*;
import com.yonyou.uap.um.third.*;
import com.yonyou.uap.um.control.*;
import com.yonyou.uap.um.core.*;
import com.yonyou.uap.um.binder.*;
import com.yonyou.uap.um.runtime.*;
import com.yonyou.uap.um.lexer.*;
import com.yonyou.uap.um.widget.*;
import com.yonyou.uap.um.widget.UmpSlidingLayout.SlidingViewType;
import com.yonyou.uap.um.log.ULog;
import java.util.*;
import android.os.*;
import android.view.*;
import android.widget.*;
import android.webkit.*;
import android.content.*;
import android.graphics.*;
import android.widget.ImageView.ScaleType;

public abstract class BusinessSettingPageActivity extends UMWindowActivity {

	protected UMWindow BusinessSettingPage = null;
protected XVerticalLayout viewPage0 = null;
protected XHorizontalLayout navigatorbar0 = null;
protected UMButton btnback = null;
protected UMLabel label0 = null;
protected UMImageButton button0 = null;
protected UMScrollView Scrollview_wpanelsetting = null;
protected XVerticalLayout wpanelsetting = null;
protected XHorizontalLayout wpanel8 = null;
protected UMLabel wlabel14 = null;
protected UMLabel wlabel15 = null;
protected UMLabel lblstockorg = null;
protected UMButton btnstockorg = null;
protected XHorizontalLayout wpanel9 = null;
protected UMLabel wlabel16 = null;
protected UMLabel wlabel17 = null;
protected UMLabel lblstock = null;
protected UMButton btnstock = null;
protected XHorizontalLayout panel3 = null;
protected UMButton button1 = null;

	
	protected final static int ID_BUSINESSSETTINGPAGE = 369901282;
protected final static int ID_VIEWPAGE0 = 539915524;
protected final static int ID_NAVIGATORBAR0 = 839508311;
protected final static int ID_BTNBACK = 716942278;
protected final static int ID_LABEL0 = 649309117;
protected final static int ID_BUTTON0 = 1595936634;
protected final static int ID_SCROLLVIEW_WPANELSETTING = 1492222383;
protected final static int ID_WPANELSETTING = 1157507396;
protected final static int ID_WPANEL8 = 161909670;
protected final static int ID_WLABEL14 = 341113118;
protected final static int ID_WLABEL15 = 1962681359;
protected final static int ID_LBLSTOCKORG = 1682961763;
protected final static int ID_BTNSTOCKORG = 1693379816;
protected final static int ID_WPANEL9 = 2012370147;
protected final static int ID_WLABEL16 = 216511227;
protected final static int ID_WLABEL17 = 966691843;
protected final static int ID_LBLSTOCK = 1741799288;
protected final static int ID_BTNSTOCK = 2125661785;
protected final static int ID_PANEL3 = 1295576854;
protected final static int ID_BUTTON1 = 1647358848;

	
	
	@Override
	public String getControllerName() {
		return "BusinessSettingPageController";
	}
	
	@Override
	public String getContextName() {
		return "";
	}

	@Override
	public String getNameSpace() {
		return "com.yonyou.ncmm_pac_pda";
	}

	protected void onCreate(Bundle savedInstanceState) {
		ULog.logLC("onCreate", this);
		super.onCreate(savedInstanceState);
        onInit(savedInstanceState);
        
	}
	
	@Override
	protected void onStart() {
		ULog.logLC("onStart", this);
		
		super.onStart();
	}

	@Override
	protected void onRestart() {
		ULog.logLC("onRestart", this);
		
		super.onRestart();
	}

	@Override
	protected void onResume() {
		ULog.logLC("onResume", this);
		
		super.onResume();
	}

	@Override
	protected void onPause() {
		ULog.logLC("onPause", this);
		
		super.onPause();
	}

	@Override
	protected void onStop() {
		ULog.logLC("onStop", this);
		
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		ULog.logLC("onDestroy", this);
		
		super.onDestroy();
	}
	
	public  void onInit(Bundle savedInstanceState) {
		ULog.logLC("onInit", this);
		UMActivity context = this;
		registerControl();
		this.getContainer();
		
		/*
		 new Thread() {
			 public void run() {
				 UMPDebugClient.startServer();
			 }
		 }.start();
		*/
		String sys_debug = ApplicationContext.getCurrent(this).getValue("sys_debug");
		if (sys_debug != null && sys_debug.equalsIgnoreCase("true")) {
			UMPDebugClient.waitForDebug();
		}

		IBinderGroup binderGroup = this;
		currentPage = getCurrentWindow(context, binderGroup);
super.setContentView(currentPage);

		
	}
	
	private void registerControl() {
		  idmap.put("BusinessSettingPage",ID_BUSINESSSETTINGPAGE);
  idmap.put("viewPage0",ID_VIEWPAGE0);
  idmap.put("navigatorbar0",ID_NAVIGATORBAR0);
  idmap.put("btnback",ID_BTNBACK);
  idmap.put("label0",ID_LABEL0);
  idmap.put("button0",ID_BUTTON0);
  idmap.put("Scrollview_wpanelsetting",ID_SCROLLVIEW_WPANELSETTING);
  idmap.put("wpanelsetting",ID_WPANELSETTING);
  idmap.put("wpanel8",ID_WPANEL8);
  idmap.put("wlabel14",ID_WLABEL14);
  idmap.put("wlabel15",ID_WLABEL15);
  idmap.put("lblstockorg",ID_LBLSTOCKORG);
  idmap.put("btnstockorg",ID_BTNSTOCKORG);
  idmap.put("wpanel9",ID_WPANEL9);
  idmap.put("wlabel16",ID_WLABEL16);
  idmap.put("wlabel17",ID_WLABEL17);
  idmap.put("lblstock",ID_LBLSTOCK);
  idmap.put("btnstock",ID_BTNSTOCK);
  idmap.put("panel3",ID_PANEL3);
  idmap.put("button1",ID_BUTTON1);

	}
	
	public void onLoad() {
		ULog.logLC("onLoad", this);
		if(currentPage!=null) {
			currentPage.onLoad();
		}
	
		{ //wpanelsetting - action:wpanelsetting_onload
    UMEventArgs args = new UMEventArgs(BusinessSettingPageActivity.this);
    actionWpanelsetting_onload(wpanelsetting,args);

}

	}
	
	public void onDatabinding() {
		ULog.logLC("onDatabinding", this);
		super.onDatabinding();
		
	}
	
	@Override
	public void onReturn(String methodName, Object returnValue) {
		
	}

	@Override
	public void onAfterInit() {
		ULog.logLC("onAfterInit", this);
		
		onLoad();
	}
	
		@Override
	public Map<String,String> getPlugout(String id) {
		XJSON from = this.getUMContext();
		Map<String,String> r = super.getPlugout(id);
		
		return r;	
	}
	
	
	
	public View getNavigatorbar0View(final UMActivity context,IBinderGroup binderGroup) {
navigatorbar0 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_NAVIGATORBAR0
,"color","#323232"
,"padding-left","8"
,"font-size","17"
,"valign","center"
,"title","业务设置"
,"width","fill"
,"font-family","default"
,"background-image","navbar_login.png"
,"layout-type","vbox"
,"halign","LEFT"
,"padding-right","8"
,"height","44.0"
);
btnback = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BTNBACK
,"font-pressed-color","#e50011"
,"color","#ffffff"
,"onclick","action:btnback_onclick"
,"width","44"
,"font-size","20"
,"font-family","default"
,"valign","center"
,"background-image","icon_back.png"
,"layout-type","hbox"
,"halign","center"
,"height","44"
);
navigatorbar0.addView(btnback);
label0 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL0
,"width","0"
,"weight","1"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","center"
,"height","fill"
);
navigatorbar0.addView(label0);
button0 = (UMImageButton)ThirdControl.createControl(new UMImageButton(context),ID_BUTTON0
,"padding-top","9"
,"font-pressed-color","#e50011"
,"color","#919191"
,"icon-pressed-image","tab_more_touch.png"
,"onclick","action:button0_onclick"
,"icon-height","25"
,"font-size","16"
,"valign","center"
,"icon-text-spacing","3"
,"icon-background-image","tab_more.png"
,"istogglebutton","false"
,"width","40"
,"checked","false"
,"font-family","default"
,"layout-type","hbox"
,"halign","right"
,"icon-width","25"
,"height","fill"
);
navigatorbar0.addView(button0);

return navigatorbar0;
}
public View getWpanel8View(final UMActivity context,IBinderGroup binderGroup) {
wpanel8 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL8
,"width","fill"
,"valign","center"
,"background-image","list_row_down1.png"
,"layout-type","vbox"
,"halign","LEFT"
,"height","44"
);
wlabel14 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL14
,"color","#000000"
,"width","70"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","right"
,"content","库存组织"
,"margin-right","10"
,"height","fill"
);
wpanel8.addView(wlabel14);
wlabel15 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL15
,"color","#000000"
,"background","#c0c0c0"
,"width","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","center"
,"content","label"
,"height","35"
);
wpanel8.addView(wlabel15);
lblstockorg = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LBLSTOCKORG
,"bindfield","stockorg"
,"color","#167ef8"
,"padding-left","4"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"height","fill"
);
wpanel8.addView(lblstockorg);
btnstockorg = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BTNSTOCKORG
,"font-pressed-color","#f2adb2"
,"color","#e50011"
,"onclick","action:btnstockorg_onclick"
,"width","44.0"
,"font-size","17"
,"font-family","default"
,"valign","center"
,"background-image","btn_add.png"
,"layout-type","hbox"
,"halign","center"
,"height","44"
);
wpanel8.addView(btnstockorg);

return wpanel8;
}
public View getWpanel9View(final UMActivity context,IBinderGroup binderGroup) {
wpanel9 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL9
,"width","fill"
,"valign","center"
,"background-image","list_row_down1.png"
,"layout-type","vbox"
,"halign","LEFT"
,"height","44"
);
wlabel16 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL16
,"color","#000000"
,"width","70"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","right"
,"content","仓库"
,"margin-right","10"
,"height","fill"
);
wpanel9.addView(wlabel16);
wlabel17 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL17
,"color","#000000"
,"background","#c0c0c0"
,"width","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","center"
,"content","label"
,"height","35"
);
wpanel9.addView(wlabel17);
lblstock = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LBLSTOCK
,"bindfield","stordoc"
,"color","#167ef8"
,"padding-left","4"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"height","fill"
);
wpanel9.addView(lblstock);
btnstock = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BTNSTOCK
,"font-pressed-color","#f2adb2"
,"color","#e50011"
,"onclick","action:btnstock_onclick"
,"width","44.0"
,"font-size","17"
,"font-family","default"
,"valign","center"
,"background-image","btn_add.png"
,"layout-type","hbox"
,"halign","center"
,"height","44"
);
wpanel9.addView(btnstock);

return wpanel9;
}
public View getPanel3View(final UMActivity context,IBinderGroup binderGroup) {
panel3 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_PANEL3
,"margin-left","2"
,"width","fill"
,"margin-top","20"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"margin-right","2"
,"height","44"
);
button1 = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BUTTON1
,"font-pressed-color","#e50011"
,"color","#ffffff"
,"onclick","action:button1_onclick"
,"font-size","20"
,"weight","1"
,"valign","center"
,"margin-right","5"
,"margin-left","3"
,"background","#f7931e"
,"width","0"
,"font-family","default"
,"layout-type","hbox"
,"halign","center"
,"value","清除设置"
,"height","44"
);
panel3.addView(button1);

return panel3;
}
public View getWpanelsettingView(final UMActivity context,IBinderGroup binderGroup) {
wpanelsetting = (XVerticalLayout)ThirdControl.createControl(new XVerticalLayout(context),ID_WPANELSETTING
,"padding-top","15"
,"width","fill"
,"valign","TOP"
,"layout-type","vbox"
,"halign","center"
,"onload","action:wpanelsetting_onload"
,"height","wrap"
);
View wpanel8 = (View) getWpanel8View((UMActivity)context,binderGroup);
wpanelsetting.addView(wpanel8);
View wpanel9 = (View) getWpanel9View((UMActivity)context,binderGroup);
wpanelsetting.addView(wpanel9);
View panel3 = (View) getPanel3View((UMActivity)context,binderGroup);
wpanelsetting.addView(panel3);

return wpanelsetting;
}
public View getScrollview_wpanelsettingView(final UMActivity context,IBinderGroup binderGroup) {
Scrollview_wpanelsetting = (UMScrollView)ThirdControl.createControl(new UMScrollView(context),ID_SCROLLVIEW_WPANELSETTING
,"layout","vbox"
,"width","fill"
,"hscrollenabled","disabled"
,"layout-type","vbox"
,"height","fill"
);
View wpanelsetting = (View) getWpanelsettingView((UMActivity)context,binderGroup);
Scrollview_wpanelsetting.addView(wpanelsetting);

return Scrollview_wpanelsetting;
}
public View getViewPage0View(final UMActivity context,IBinderGroup binderGroup) {
viewPage0 = (XVerticalLayout)ThirdControl.createControl(new XVerticalLayout(context),ID_VIEWPAGE0
,"background","#F5F5F5"
,"width","fill"
,"valign","TOP"
,"layout-type","vbox"
,"halign","center"
,"content","                    ﻿    "
,"height","fill"
);
View navigatorbar0 = (View) getNavigatorbar0View((UMActivity)context,binderGroup);
viewPage0.addView(navigatorbar0);
View Scrollview_wpanelsetting = (View) getScrollview_wpanelsettingView((UMActivity)context,binderGroup);
viewPage0.addView(Scrollview_wpanelsetting);

return viewPage0;
}
public UMWindow getCurrentWindow(final UMActivity context,IBinderGroup binderGroup) {
BusinessSettingPage = (UMWindow)ThirdControl.createControl(new UMWindow(context),ID_BUSINESSSETTINGPAGE
,"layout","vbox"
,"controller","BusinessSettingPageController"
,"namespace","com.yonyou.ncmm_pac_pda"
,"width","fill"
,"valign","TOP"
,"layout-type","linear"
,"halign","center"
,"height","fill"
);
View viewPage0 = (View) getViewPage0View((UMActivity)context,binderGroup);
BusinessSettingPage.addView(viewPage0);

return (UMWindow)BusinessSettingPage;
}

	
	public void actionButton1_onclick(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "button1_onclick";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "onClearBtn()",UMActivity.getViewId(control),args);
}
public void actionWpanelsetting_onload(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "wpanelsetting_onload";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "onPageLoad()",UMActivity.getViewId(control),args);
}
public void actionBtnstock_onclick(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "btnstock_onclick";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "this.btnstock_onclick()",UMActivity.getViewId(control),args);
}
public void actionBtnstockorg_onclick(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "btnstockorg_onclick";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "this.btnstockorg_onclick()",UMActivity.getViewId(control),args);
}
public void actionButton0_onclick(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "button0_onclick";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "loadmenu()",UMActivity.getViewId(control),args);
}
public void actionBtnback_onclick(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "btnback_onclick";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "this.btnback_onclick()",UMActivity.getViewId(control),args);
}


}
